package com.autonavi.dextool;

import com.autonavi.tools.javap.BasicWriter.LineWriter;

public class MultidexSwitch {

	public static final boolean DEBUG = false;
	public static final boolean DEBUG_TOOLS = false;
	@SuppressWarnings("unused")
	public static void print(String s , LineWriter lineWriter) {
		if(!(DEBUG || DEBUG_TOOLS)) return;
		lineWriter.print(s);
	}

	@SuppressWarnings("unused")
	public static void print(Object o, LineWriter lineWriter) {
		if(!(DEBUG || DEBUG_TOOLS)) return;
		lineWriter.print(o == null ? null : o.toString());
	}

	@SuppressWarnings("unused")
	public static void println( LineWriter lineWriter) {
		if(!(DEBUG || DEBUG_TOOLS)) return;
		lineWriter.println();
	}

	@SuppressWarnings("unused")
	public static void println(String s, LineWriter lineWriter) {
		if(!(DEBUG || DEBUG_TOOLS)) return;
		lineWriter.print(s);
		lineWriter.println();
	}

	@SuppressWarnings("unused")
	public static void println(Object o, LineWriter lineWriter) {
		if(!(DEBUG || DEBUG_TOOLS)) return;
		lineWriter.print(o == null ? null : o.toString());
		lineWriter.println();
	}
	
	public static void log(String log){
		if(!DEBUG) return;
		System.out.println("SwitchDebug :"+log);
	}
	
	public static void log(String tag , String log){
		if(!DEBUG) return;
		System.out.println(tag+" :"+log);
	}
	
	public static void log(boolean debug ,String log){
		if(!debug) return;
		System.out.println("SwitchDebug :"+log);
	}
	
	public static void log(boolean debug , String tag , String log){
		if(!debug) return;
		System.out.println(tag+" :"+log);
	}

}
